//
//  SearchNavigationView.h
//  iMobile
//
//  Created by baken on 2016/12/7.
//  Copyright © 2016年 MyApp. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol searchDelegate <NSObject>

- (void)backButtonClick;

@optional
- (void)filterHistoryResult:(NSString *)text andRange:(NSRange)range andReplaceString:(NSString *)string;

- (void)searchButtonClick:(NSString *)searchStr;

- (void)clearButtonClick;

- (void)beginEdit;
@end


@interface SearchNavigationView : UIView

@property (nonatomic, strong) id<searchDelegate> delegate;

@property (nonatomic, strong) NSString *searchText;

@property (nonatomic, strong) UITextField *textfield;

@property (nonatomic, assign) BOOL isSearchPop;

@end
